﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FrmLastAddExamUser.aspx.cs" Inherits="ExamV5.WorkExam.FrmLastAddExamUser" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Language" content="zh-cn" />
    <script type="text/javascript" charset="gb2312" language="javascript" src="../Image/calendar.js"></script>
    <%--<link href="../Image/STYLE.CSS" rel="stylesheet" type="text/css" />--%>

    <link rel="stylesheet" href="../layui/css/layui.css" type="text/css" />
    <link rel="stylesheet" href="../Image/examstyle.css" type="text/css" />
    <script type="text/javascript" language="javascript" src="../Image/jquery.min.js"></script>
    <script type="text/javascript" language="javascript" src="../layui/layui.all.js"></script>
    <script type="text/javascript" language="javascript">
        function CheckData() {

            if (document.getElementById("txtBrowUserCode").value == "") {
                alert("请选择补录人员名单！");
                return false;
            }

            return true;
        }
        function ShowBUserList(txtBrowUserName, txtBrowUserCode) {
            var strusername = "";
            var strname = "";
            strname = document.getElementById("txtBrowUserName").value;
            strusername = document.getElementById("txtBrowUserCode").value;
            //strtmpusers = textUser(strusername, strname);
            //if (strtmpusers != "") {
            //    strtmpusers = strtmpusers.split("_");
            //    document.getElementById("txtBrowUserCode").value = strtmpusers[0];
            //    document.getElementById("txtBrowUserName").value = strtmpusers[1];

            //}
            textUser(strusername, strname);
        }
        function WindowClosed() {
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(index);
        }

        function textUser(usernames, names) {
            strURL = "../ManagSys/FrmSelectUser.aspx?EB=B&TypeValue=W&strFlag=A&ID=<%=intID%>";
            //var obj = new Object();
            //obj.username = usernames;
            //obj.name = names;


            //var iWidth = 620;
            //var iHeight = 650;
            //var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
            //var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
            //var strvalue = window.open(strURL, "", "height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left=" + iLeft + ",status=no,toolbar=no,menubar=no,location=no");
            //if (strvalue == undefined) {
            //    return window.returnValue;
            //}
            //else if (strvalue != "")
            //    return strvalue;
            //else
            //    return false;
            layer.open({
                type: 2,
                title: '人员选择',
                shadeClose: true,
                shade: false,
                area: ['650px', '600px'],
                content: strURL
            });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" class="layui-form">
        <div class="tankuang">
            <div class="tanchuang_jc">

                <div class="layui-form-item">
                    <label class="layui-form-label">测评名称</label>
                    <div class="layui-input-inline w360">
                        <asp:Label ID="labExamName" runat="server" CssClass="layui-text layui-form-mid"></asp:Label>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">有效期限</label>
                    <div class="layui-input-inline w360">
                        <asp:Label ID="labPaperUseTime" runat="server" CssClass="layui-text layui-form-mid"></asp:Label>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">已录人员</label>
                    <div class="layui-input-inline w360">
                        <asp:Label ID="labJoinExamUser" runat="server" CssClass="layui-text layui-form-mid"></asp:Label>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">补录人员</label>
                    <div class="layui-input-inline w360">
                        <textarea class="layui-textarea radius5" id="txtBrowUserName" name="txtBrowUserName" readonly rows="3"><%=strBrowUserName%></textarea>
                        <input type="hidden" value="<%=strBrowUserCode%>" id="txtBrowUserCode" name="txtBrowUserCode">
                    </div>
                    <a onclick="javascript:ShowBUserList('txtBrowUserName','txtBrowUserCode');" href="#" onfocus='this.blur();' class="a_more" id="a_more">
                        <img src="../Image/images/jc_more.png" /></a>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label"></label>
                    <div class="layui-input-block">
                        <asp:Button ID="butEnter" runat="server" Text="提  交" CssClass="layui-btn radius5 bg_blue w120" OnClientClick="return CheckData();" OnClick="butEnter_Click" />
                        <asp:Button ID="butClose" runat="server" Text="关  闭" CssClass="layui-btn radius5 bg_c8c8c8 w120" OnClientClick="javascript:WindowClosed();" />
                    </div>
                </div>
            </div>
        </div>

        <%--<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
            <tr>
                <td>
                    <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
                        <tr height="33">
                            <td width="6">
                                <img src="../Image/SHeadLeft.gif" border="0"></td>
                            <td align="center" width="130" background="../Image/SHeadLeft1.gif" height="33"><font color="white"><b>补录参考人员</b></font></td>
                            <td width="7">
                                <img src="../Image/SHeadLeft2.gif" border="0"></td>
                            <td background="../Image/SHeadLeft3.gif" height="33" width="550"></td>
                            <td width="10">
                                <img src="../Image/SHeadLeft4.gif" border="0"></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr height="10">
                <td></td>
            </tr>
            <tr>
                <td>

                    <table id="table2" bordercolor="#cccccc" cellspacing="0" bordercolordark="#cccccc" cellpadding="0"
                        width="99%" align="center" border="1" class="tableStyle">
                        <tr height="35">
                            <td bgcolor="#d4e5f5">&nbsp;<img src="../Image/MenuICO/Choose23.gif" border="0" style='position: relative; top: 3px'><strong> <font color="#003399">一、补录具体参考人员名单</font></strong></td>
                        </tr>
                        <tr>
                            <td>
                                <table id="table3" bordercolor="#cccccc" cellspacing="0" bordercolordark="#cccccc" cellpadding="0"
                                    width="100%" align="center" border="1" class="tableStyle">
                                    <tr bgcolor="#ffffff" height="30">
                                        <td align="right" width="80">测评名称：</td>
                                        <td align="left">
                                            <asp:Label ID="labExamName" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr bgcolor="#f5fcfe" height="30">
                                        <td align="right" width="80">有效期限：</td>
                                        <td align="left">
                                            <asp:Label ID="labPaperUseTime" runat="server"></asp:Label>
                                        </td>
                                    </tr>

                                    <tr bgcolor="#ffffff" height="30">
                                        <td align="right" width="80">已录人员：</td>
                                        <td align="left">
                                            <asp:Label ID="labJoinExamUser" runat="server"></asp:Label>
                                        </td>
                                    </tr>

                                    <tr bgcolor="#f5fcfe" height="30">
                                        <td align="right" width="80">补录人员：</td>
                                        <td align="left">
                                            <textarea class="text" style="width: 450px; height: 200px" id="txtBrowUserName" name="txtBrowUserName" rows="5" readonly cols="54"><%=strBrowUserName%></textarea><a href='#' onfocus='this.blur();' onclick="javascript:ShowBUserList('txtBrowUserName','txtBrowUserCode');"><img alt="选择人员信息" src="../image/butChooseA.gif" border="0" style="position: relative; top: -80px"></a>
                                            <br>
                                            <input id="txtBrowUserCode" name="txtBrowUserCode" type="hidden" value="<%=strBrowUserCode%>">
                                        </td>
                                    </tr>

                                </table>

                            </td>
                        </tr>

                    </table>
                    <table id="table1" bordercolor="#cccccc" cellspacing="0" bordercolordark="#ffffff" cellpadding="0"
                        width="99%" align="center" border="0">
                        <tr>
                            <td align="center">
                                <br />
                                <asp:Button ID="butEnter" runat="server" Text="提  交"
                                    CssClass="but2B" OnClientClick="return CheckData();"
                                    OnClick="butEnter_Click" /><asp:Button ID="butClose" runat="server" Text="关  闭" CssClass="but2R" OnClientClick="javascript:window.close();" /><br />
                                <br />
                            </td>
                        </tr>
                    </table>

                </td>
            </tr>
        </table>--%>
    </form>
</body>
</html>

